#pragma once
#include "Protocol.hpp"
class Task
{
public:
    Task(){}
    Task(int sock,string message)
    :_sock(sock)
    ,_message(message)
    {}
    void ProcessOn()
    {
        ep=new EndPoint(_sock,_message);
        ep->Handler();
        delete ep;
    }
private:
    string _message;
    int _sock;
    EndPoint* ep;
};
